{include file="user-navi.tpl"}

<div class="site-wrap2 clearfix">
	<div class="box-edit">
		
		{$dzMessage}
		
		<form class="form-horizontal" method="post" action="{'user/edit'|l}">
			<div class="control-group">
				<label class="control-label" for="fullname">Họ và tên</label>
				<div class="controls">
					<input type="text" id="fullname" name="user_fullname" placeholder="ex: Nguyen Van A" value="{$u.user_fullname|escape}" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="email">Email</label>
				<div class="controls">
					<input type="text" id="email" placeholder="ex:user@email.com" value="{$u.user_email|escape}" readonly="readonly" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="dob">Ngày sinh</label>
				<div class="controls">
					<div class="input-append date" id="dp3" data-date="" data-date-format="mm-dd-yyyy">
						<input class="span2" size="16" type="text" name="user_birthday" value="{$u.user_birthday|date_format:'%m-%d-%Y'}" />
						<span class="add-on"><i class="icon-calendar"></i></span>
					</div>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">Giới tính</label>
				<div class="controls">
					<label class="radio inline">
						<input type="radio" name="user_gender" id="optionsRadios1" value="option1" {if $u.user_gender==0}checked="checked"{/if} />
						Nam </label>
					<label class="radio inline">
						<input type="radio" name="user_gender" id="optionsRadios2" value="option2" {if $u.user_gender==1}checked="checked"{/if} />
						Nữ </label>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="address">Địa chỉ</label>
				<div class="controls">
					<input type="text" id="address" placeholder="ex:1 Trần Phú - Ba Đình - Hà Nội" name="user_address" value="{$u.user_address|escape}" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="phone">Điện thoại</label>
				<div class="controls">
					<input type="text" id="phone" placeholder="ex:09000000000" name="user_mobile" value="{$u.user_mobile}" />
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="descrip">Giới thiệu</label>
				<div class="controls">
					<textarea rows="3" id="descrip" placeholder="ex:Ngon zai" name="user_desc">{$u.user_desc}</textarea>
				</div>
			</div>
			<div class="control-group">
				<div class="controls">
					<div class="formFooterButtons form-inline clearfix">
						<input type="submit" class="hasText Button color1 large ajax pull-left" value="Cập nhật" />
						<a href="{'<front>'|l}" class="hasText Button color2 large ajax pull-left"> <span class="buttonText">Huỷ bỏ</span> </button>
					</div>
				</div>
			</div>
		</form>
	</div>
	<!--site conntainer--> 
</div>
<!-- js files -->
<script src="{'js/bootstrap-datepicker.js'|ltpl}" type="text/javascript" charset="utf-8"></script> 
{literal} 
<script type="text/javascript">
$('#dp3').datepicker()
	.on('changeDate', function(ev){
					$('#dp3').datepicker('hide');
				});
</script>
{/literal}